home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / par-lab.tip < prev    next >
Text File  |  1993-09-15  |  2KB  |  83 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 11.1.3.1, p. II-56.
  16. % Original source in file "par2.TEX", starting line 411.
  17. \wlog{L: "par-lab.tip" ["par2.TEX," l. 411, p. II-56]}%
  18. % This file DOES NOT belong to format "texip."
  19. \catcode`\@ = 11
  20. \newdimen\Delta@XY
  21. \newcount\@LabeledParNesting
  22. \@LabeledParNesting = 0
  23. \def\BeginAListX #1#2#3{% 
  24.     \par
  25.     \bgroup
  26.     \advance\leftskip by #1
  27.     \advance\rightskip by #2
  28.     \advance\@LabeledParNesting by 1
  29.     \message{\string\BeginAListX: nesting level:
  30.         \the\@LabeledParNesting}%
  31.     \@LabelCounter = 0
  32.     \Delta@XY = #3
  33.     \ifdim\Delta@XY < 0pt
  34.         \message{\string\BeginAListX: negative Delta{xy},
  35.             made positive.}%
  36.     \fi
  37. }
  38. \def\EndAListX{% 
  39.     \par
  40.     \egroup
  41. }
  42. \def\ItemLL #1{%
  43.     \par
  44.     \noindent
  45.     \hbox to 0pt{%
  46.         \hskip -\Delta@XY
  47.         #1%
  48.         \hfil
  49.     }%
  50.     \ignorespaces
  51. }
  52. \def\ItemLR #1{%
  53.     \par
  54.     \noindent
  55.     \hbox to 0pt{%
  56.         \hss
  57.         #1%
  58.         \hskip\Delta@XY
  59.     }%
  60.     \ignorespaces
  61. }
  62. \def\ItemRL #1{%
  63.     \par
  64.     \noindent
  65.     \hbox to 0pt{%
  66.         \hskip\Delta@XY
  67.         #1%
  68.         \hss
  69.     }%
  70.     \ignorespaces
  71. }
  72. \def\ItemRR #1{%
  73.     \par
  74.     \noindent
  75.     \hbox to 0pt{%
  76.         \hfil
  77.         #1%
  78.         \hskip -\Delta@XY
  79.     }%
  80.     \ignorespaces
  81. }
  82. \catcode`\@ = 12
  83.